package com.fxp.project.jiuselu.web.business.v1.controller.search;


import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.search.service.ISearchFontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 搜索栏默认字样Controller
 *
 * @author Jason.Wang
 * @date 2022-08-29
 */
@RestController
@RequestMapping("v1/setting/font")
public class SearchFontController extends BaseController
{
    @Autowired
    private ISearchFontService searchFontService;



    /**
     * 获取搜索栏默认字样详细信息
     */
    @GetMapping(value = "/{id}")
    @CrossOrigin
    public CommonResult getInfo(@PathVariable("id")  @Validated Long id)
    {
        return CommonResult.success(searchFontService.selectSearchFontById(id));
    }


}
